package com.alipay.sofa.award.common.dal.dao;

import com.alipay.sofa.award.common.dal.dataobject.UserVisitRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserVisitRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserVisitRecord record);

    UserVisitRecord selectByPrimaryKey(Integer id);

    UserVisitRecord selectByUserIdAndActivityTime(@Param("userId") String userId,
                                                  @Param("activityTime") String activityTime);

    int addVisitTimesOnceByUserIdAndActivityTime(@Param("userId") String userId,
                                                 @Param("activityTime") String activityTime);

    int updateByPrimaryKey(UserVisitRecord record);
}